<template>
  <span>{{params.value | currency((siteInfo.currencySymbol || '$'), 2)}}</span>
</template>

<script>
import {mapGetters} from 'vuex';

export default {
    data: function () {
        return {
            displayValue: ''
        };
    },
    beforeMount () {
    },
    computed: {
        ...mapGetters(['siteList']),
        siteId () {
            return this.$store.state.user.siteId;
        },
        siteInfo () {
            let info = this.siteList.find(res => res.id === Number(this.siteId));
            return info;
        }
    }
};
</script>

<style scoped>

</style>
